import App from './App'

// #ifndef VUE3
import Vue from 'vue'
Vue.config.productionTip = false
App.mpType = 'app'

import uView from '@/uni_modules/uview-ui/index.js'

Vue.use(uView)

import { request, url } from './common/query'
import { getTime } from './common/tool'
import {} from './common/socket'
import store from './store/index.js'

Vue.prototype.$http = request
Vue.prototype.$url = url
Vue.prototype.$getTime = getTime

const app = new Vue({
    ...App,
		store
})
app.$mount()
// #endif

// #ifdef VUE3
import { createSSRApp } from 'vue'

export function createApp() {
  const app = createSSRApp(App)

  return {
    app
  }
}
// #endif